import request from '@/utils/request'
import qs from 'qs'

// /rlzyk/page
export const eLearnkPage = params => {
  return request({
    url: '/elearn/query',
    method: 'GET',
    params
  })
}

//  新增 & 修改 /rlzyk/save
export const saveELearn = data => {
  return request({
    url: '/elearn/save',
    method: 'POST',
    data
  })
}

// 删除 /rlzyk/delete
export const deleteELearn = params => {
  return request({
    url: '/elearn/delete?' + qs.stringify(params),
    method: 'POST'
  })
}
